#ifndef VERSION_HPP
#define VERSION_HPP

#include "config.h"

#include <string>

struct DIARY_APP_SDK_API Version {
    u8 major;
    u8 minor;
    u8 patch;
    u8 reserved;

    u32 build_number;

    [[nodiscard]] u64 code() const;

    [[nodiscard]] std::string str() const;

    [[nodiscard]] std::string info() const;
};

#endif /* VERSION_HPP */
